package com.fengke.util;

public final class Constants {
	/** 日期格式配比 */
	public static final String[] DATE_PATTERNS = new String[] { "yyyy", "yyyy-MM", "yyyyMM", "yyyy/MM", "yyyy-MM-dd", "yyyyMMdd", "yyyy/MM/dd", "yyyy-MM-dd HH:mm:ss", "yyyyMMddHHmmss", "yyyy/MM/dd HH:mm:ss" };
	/** finalist.xml文件路径 */
	public static final String SETTING_XML_PATH = "systemSetting.xml";
	/**
	 * 回调URL
	 */
	public static final String BACK_URL = "backURL";
	/**
	 * session中错误信息常量
	 */
	public static final String SESSION_ERROR_MSG = "ERRORMSG";
	public static final class SessionProfileName {
		public static final String BCC_PROFILE_NAME = "BccAgentProfile";
		public static final String CSC_PROFILE_NAME = "AgentProfile";
		public static final String ESTORE_PROFILE_NAME = "StoreProfile";
	}
	public static final int CSC_LOGIN_ERROR_TIMES = 5;
	/**
	 * Action 返回值
	 */
	public static final class ActionReturnName {
		/**
		 * 未登录展示登录页面
		 */
		public static final String NO_LOGIN = "nologin";
		/**
		 * 已登录
		 */
		public static final String LOGINED = "logined";
		/**
		 * 错误页面
		 */
		public static final String ERROR = "error";
		/**
		 * 成功页面
		 */
		public static final String SUCCESS = "success";
		/**
		 * json数据
		 */
		public static final String JSON = "json";
	}
	/**
	 * 页面大小
	 */
	public final class PageSize {
		public static final int CSC_PAGE_SIZE = 15;
		public static final int ESTORE_PAGE_SIZE = 12;
	}
	/**
	 * 页面返回提示信息参数
	 */
	public static final class PageMessage {
		public static final String SUCCESS = "message_success";
		public static final String DANGER = "message_danger";
		public static final String WARNING = "message_warning";
		public static final String INFO = "message_info";
	}
	/**
	 * SN 生成器常量
	 */
	public static final class SnGenerator {
		/** 商品 */
		public static final String SN_PRODUCT_PREFIX = "yyyyMMdd";
		public static final int SN_PRODUCT_MAXLO = 100;
		/** 订单 */
		public static final String SN_ORDER_PREFIX = "yyyyMMdd";
		public static final int SN_ORDER_MAXLO = 100;
		/** 收款单 */
		public static final String SN_PAYMENT_PREFIX = "yyyyMMdd";
		public static final int SN_PAYMENT_MAXLO = 100;
		/** 退款单 */
		public static final String SN_REFUNDS_PREFIX = "yyyyMMdd";
		public static final int SN_REFUNDS_MAXLO = 100;
		/** 发货单 */
		public static final String SN_SHIPPING_PREFIX = "yyyyMMdd";
		public static final int SN_SHIPPING_MAXLO = 100;
		/** 退货单 */
		public static final String SN_RETURNS_PREFIX = "yyyyMMdd";
		public static final int SN_RETURNS_MAXLO = 100;
	}
	
	public static final class UploadFile {
		/**
		 * 服务器绝对路径
		 */
		public static final String UPLOAD_FILE_DIR = "/root/data/fengke/picture/";
		/**
		 * 相对于前端展示的路径
		 */
		public static final String RELATIVE_FILE_PATH = "http://fengkeworld.com/picture/";
		
		public static final String FILE_DIR_PREFIX = "yyyyMMdd";
	}
	/**
	 * 微信相关参数名
	 */
	public final class WeiXinParam {
		public static final String ACCESS_TOKEN_PARAM = "access_token";
		public static final String ACCESS_TOKEN_RETURN = "access_token";
		public static final String JSAPI_TICKET_PARAM = "jsapi_ticket";
		public static final String JSAPI_TICKET_RETURN = "ticket";
	}
	/**
	 * 缓存相关
	 */
	public final class CacheInfo {
		public static final String CACHE_URL_ESTORE = "http://fengkeworld.com/cache/invalidCacheSilence.action";
		public static final String CACHE_URL_AGENT = "http://fengkeworld.com:8090/agent/cache/invalidCacheSilence.action";
		public static final String CACHE_ID_ADMIN = "AdminRepository.adminRepository-cache";
		public static final String CACHE_ID_MASTER = "MasterRepository.masterRepository-cache";
		public static final String CACHE_ID_MEMBER = "MemberRepository.memberRepository-cache";
		public static final String CACHE_ID_DIVISION = "DivisionRepository.divisionRepository-cache";
		public static final String CACHE_ID_OPENUNION = "OpenUnionRepository.openUnionRepository-cache";
		public static final String CACHE_ID_PRODUCT = "ProductRepository.productRepository-cache";
		public static final String CACHE_ID_TAG = "TagRepository.tagRepository-cache";
	}
}
